package com.lecture.java8.fors;

import com.lecture.java8.excel.model.DemoData;

import java.util.Date;

/**
 * @author luyn
 * @version 1.0
 * @description
 * @date 2020/8/17 9:19
 */
public class ForTest {
    public static void main(String[] args) throws Exception {
        /*out:for (int i = 0; i < 3; i++) {
            System.out.println("out:" + i);
            for (int j = 0; j < 3; j++) {
                if(i == 1 && j == 1) {
                    continue out;
                }
                System.out.println("  in:" + j);
            }
        }*/
        Date date =  new Date(1597657015000L);
        Date date1 = new Date(1597657015000L - (3 * 1000));
        System.out.println(date);
        System.out.println(date1);
        DemoData demoData = new DemoData();
        demoData.setStr("123");

        Object getStr = demoData.getClass().getMethod("getStr").invoke(demoData);
        System.out.println(getStr);
    }
}
